﻿using SuperFrame.Charts.Modes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SuperFrame.Charts
{
    /// <summary>
    /// 图例控件
    /// </summary>
    public partial class LegendControl : UserControl
    {
        public LegendControl()
        {
            InitializeComponent();
            this.DataContext = this;
        }

        public List<IntervalMode> LegentInfoList
        {
            get { return (List<IntervalMode>)GetValue(LegentInfoListProperty); }
            set { SetValue(LegentInfoListProperty, value); }
        }

        // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty LegentInfoListProperty =
            DependencyProperty.Register("LegentInfoList", typeof(List<IntervalMode>), typeof(LegendControl), new PropertyMetadata(null));

    }
}
